import {PureComponent} from "react";
import {connect} from "react-redux";
import {fetchHomeMultiDataAction} from "./store/modules/home";

class Category extends PureComponent {
    componentDidMount() {
        this.props.fetchMultiData();
    }

    render() {
        return (
            <div>category请求数据</div>
        )
    }
}

const mapDispatchToProps = (dispatch) => ({fetchMultiData: () => dispatch(fetchHomeMultiDataAction())})
export default connect(null, mapDispatchToProps)(Category);